package com.zzr.zzrbackend.mapper;

import com.zzr.zzrbackend.pojo.domain.MessageDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MessageDetailMapper {
    Integer insert(MessageDetail record);
    List<MessageDetail> selectAllByRoomId(Integer roomId);

    MessageDetail selectLatestByRoomId(Integer roomId);
}
